package B3;

import com.github.oxo42.stateless4j.delegates.FuncBoolean;

public class GuardCondition {
    private boolean isstr; //当前字符是否为双引号
    private boolean isescape; //当前字符是否为反斜杠


    FuncBoolean isString(){
        return () -> isstr;
    }
    FuncBoolean isnotString(){
        return () ->!isstr;
    }

    FuncBoolean isEscape(){
        return () -> isescape;
    }
    FuncBoolean isnotEscape(){
        return () ->!isescape;
    }

    void setIsstr(boolean isstr) {
        this.isstr = isstr;
    }
    void setIsescape(boolean isescape){
        this.isescape=isescape;
    }

}

